<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息</title>
    <link rel="stylesheet" th:href="@{css/userInfo.css}"> <!-- 引入CSS文件 -->
</head>
<body>
<div class="container">
    <a href="index" class="back-button"><span>返回首页</span></a>
    <h1>用户信息</h1>

    <div class="user-details">
        <p><strong>用户ID：</strong><span th:text="${user.userid}"></span></p>
        <p><strong>用户名：</strong><span th:text="${user.username}"></span></p>
        <p><strong>真实姓名：</strong><span th:text="${user.realname}"></span></p>
        <p><strong>联系电话：</strong><span th:text="${user.phonenumber}"></span></p>
        <p><strong>电子邮件：</strong><span th:text="${user.email}"></span></p>
<!--        <p><strong>用户状态：</strong>-->
<!--            <span th:text="${user.userstatus == 1 ? '正常' : '停用'}"></span>-->
<!--        </p>-->
    </div>

    <div class="actions">
        <a href="edit" class="edit-button">编辑信息</a>
        <a href="logout" class="logout-button">退出登录</a>
    </div>
</div>
</body>
</html>
